import org.junit.Test;

import java.io.File;
import java.io.InputStream;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;

public class test1 {
    @Test
    public void sd(){
        String str = "http://zouyujie.top/admin";
        str = str.replaceAll("admin","ss");
        System.out.println(str);
    }
    @Test
    public void test2(){
        Map<String, Object> map = new HashMap<>();
        map.put("1",2);
        map.put(null,null);
        for(String key : map.keySet()){
            System.out.println(key);
        }
    }
    @Test
    public void file(){
        URL url = test1.class.getClassLoader().getResource("/");
        File dir = new File(url.getFile());
        for(File name : dir.listFiles()){
            System.out.println(name);

        }
    }
}
